<%@ Page Language="VB" MasterPageFile="~/MasterPage.master" AutoEventWireup="false" CodeFile="ConfigureCategories.aspx.vb" Inherits="ConfigureCategories" title="Configure Categories" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<div class="post">
         <h2 class="title"><span>Pick an Article to Edit</span></h2>
	     <div class="story">
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="CategoryID"
        DataSourceID="ObjectDataSource1" AllowPaging="True">
        <Columns>
            <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
            <asp:BoundField DataField="Name" HeaderText="Name" SortExpression="Name" />
        </Columns>
    </asp:GridView>
    <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" DataObjectTypeName="sk.DAL.Category"
        DeleteMethod="DeleteCategory" InsertMethod="CreateCategory" SelectMethod="GetAllCategories"
        TypeName="CategoryObj" UpdateMethod="UpdateCategory">
        <DeleteParameters>
            <asp:Parameter Name="CatID" Type="Int32" />
        </DeleteParameters>
    </asp:ObjectDataSource>
    <br />
    &nbsp; &nbsp;<asp:Label ID="Label1" runat="server" Text="New Category Name:"></asp:Label>
    &nbsp;
    <asp:TextBox ID="txtNewCategory" runat="server"></asp:TextBox>
    <asp:Button ID="btnAddCategory" runat="server" Text="Add Category" /><br />
    </div>
</div>
</asp:Content>

